package com.asframe.astruts2.proxy
{
	import com.asframe.pattern.observer.IObserver;
	
	import flexunit.framework.Assert;
	
	public class MethodobserverProxyTest
	{		
		[Test]
		public function testReplyNotice():void
		{
			var observerMock:MethodMock = new MethodMock();
			var methodProxy:MethodobserverProxy = new MethodobserverProxy(observerMock,observerMock.methodCall);
			methodProxy.replyNotice(null,["soda",18]);
			
			methodProxy = new MethodobserverProxy(observerMock,observerMock.methodOneParam);
			methodProxy.replyNotice(null,"suving");
		}
	}
}
import flexunit.framework.Assert;

class MethodMock
{
	public function methodCall(name:String,age:int):void
	{
		Assert.assertEquals(name,"soda");
		Assert.assertEquals(age,18);
	}
	
	public function methodOneParam(name:String):void
	{
		Assert.assertEquals(name,"suving");
	}
}